import { createSlice } from "@reduxjs/toolkit";

const MenuSlice = createSlice({
    name: "menu",
    initialState: {
        width_menu: false,
    },
    reducers: {
        set_width_menu(state){
            state.width_menu=!state.width_menu;
        }
    },
});

export const { set_width_menu } = MenuSlice.actions;

export default MenuSlice.reducer